//
//  SameCityCell.m
//  MM
//
//  Created by 郑渊文 on 6/2/15.
//  Copyright (c) 2015 王晨辉. All rights reserved.
//

#import "SameCityCell.h"

@implementation SameCityCell

//- (void)awakeFromNib {
//    // Initialization code
//}
//
//- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
//    [super setSelected:selected animated:animated];
//
//    // Configure the view for the selected state
//}


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self initConfig];
    }
    return self;
}

-(void)initConfig
{
    UILabel *pLab = [[UILabel alloc]initWithFrame:CGRectMake(10, 5,50, 30)];
    pLab.text = @"会场:";
    [self addSubview: pLab];
    
    UILabel *tLab = [[UILabel alloc]initWithFrame:CGRectMake(10,30, 50, 30)];
    tLab.text = @"时间:";
    tLab.font = [UIFont systemFontOfSize:12];
    [self addSubview: tLab];
    
    _placeLab = [[UILabel alloc]initWithFrame:CGRectMake(50, 5, 230, 30)];
    [self addSubview:_placeLab];
    _startTime = [[UILabel alloc]initWithFrame:CGRectMake(50, 30, 200, 30)];
    _startTime.font = [UIFont systemFontOfSize:10];
    [self addSubview:_startTime];
    
    _endTime = [[UILabel alloc]initWithFrame:CGRectMake(150, 30, 100, 30)];
    _endTime.font = [UIFont systemFontOfSize:10];
    [self addSubview:_endTime];
}
@end
